﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="Historico.aspx.cs" Inherits="SERIX.Historico" Title="Historico" %>
    
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register src="Controles/Navegador.ascx" tagname="Navegador" tagprefix="uc1" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
    <table border="0" cellspacing="0" cellpadding="2" align="center" 
        style="width: 75%">
        <tr>
            <td class="secao_titulo" style="width: 284px">Evolução de Cadastros<hr class="linhaHorizontal" 
                    style="width: 753px" />
            </td>
        </tr>
    </table>
<table align="center" border="0" cellpadding="2" cellspacing="0" style="width: 90%">
        <tr>
            <td align="left" class="barra" style="height: 16px; background-color: White;">
                <asp:Label ID="lblErro" runat="server" CssClass="erro" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="grid_titulo" style="height: 45px">
                Histórico de
                <asp:DropDownList ID="ddlhistorico" runat="server" AutoPostBack="True" 
                    Width="152px" TabIndex="1">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem Value="B">Beneficiarios</asp:ListItem>
                    <asp:ListItem Value="P">Propriedades</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" style="color: #000000">
                <asp:Label ID="lblFiltro" runat="server" CssClass="filtro" TabIndex="-1" Text="Filtro: "></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000; height: 189px;">                
                <table style="width:100%; height: 205px;">
                        <tr>
                            <td style="height: 54px;" class="grid_titulo">
                                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<asp:Label ID="lblCPF" runat="server" 
                                    Text="CPF "></asp:Label>
                                <asp:TextBox ID="tbCPF" runat="server"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="tbCPF_MaskedEditExtender" runat="server" 
                                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                    Mask="999.999.999-99" TargetControlID="tbCPF">
                                </cc1:MaskedEditExtender>
                                &nbsp;<asp:Button ID="btnPesquisar" runat="server" onclick="btnPesquisar_Click" 
                                    Text="Pesquisar" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" valign="top" style="height: 148px;">                             
                                
                                <asp:GridView CssClass="grid" 
                    EmptyDataText="Nenhum registro encontrado."  runat="server" ID="gvEvolucao"
                    Width="467px" Height="16px" 
                                        onrowcommand="GridView1_RowCommand" AutoGenerateColumns="False" 
                                        DataKeyNames="IDT_EVOLUCAO,IDT" >
                    <AlternatingRowStyle CssClass="row_alter" />
                    <EmptyDataRowStyle CssClass="emptyrow" />
                                    <Columns>
                                        <asp:BoundField DataField="DT_ATUAL_CADASTRO" Visible="true" HeaderText="Data da Evolução" />
                                        <asp:BoundField DataField="USUARIO_FIM" Visible="true" HeaderText="Usuario" />
                                        <asp:ButtonField ButtonType="Image" Visible="true" CommandName="view" HeaderText="Visualizar" 
                                            ImageUrl="~/Imagens/botoes/Edit.png" Text="Visualizar" />
                                    </Columns>
                    <FooterStyle CssClass="footer" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                    <RowStyle CssClass="row" />
                </asp:GridView>
                            </td>
                        </tr>
                    </table>             
                
                    
                
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                &nbsp;</td>
        </tr>
    </table>
    
    </asp:Content>
